import axios from "axios";

axios.defaults.baseURL="http://www.zhaijizhe.cn:3001"

axios.interceptors.request.use(config => {
    return config
})
axios.interceptors.response.use(response => {
    return response.data
}, ({ response }) => {
    if (response) {
        switch (response.status) {
            case 401:
                break
            case 404:
                break
            case 500:
                break
        }
    }
})
export default axios
